<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新建网页</title>
</head>
    <body> <pre>
            编辑器一般步骤  引入  
            个性设置   参考ueditor.config.js里面的配置项  
                       把需要的配置的选项及值 拿出来
                       写一个对象  把该对象当作参数给  
            系统整合
           </pre>
    <form action="02.php" method="post">  
    <!-- 加载编辑器的容器 -->
    <textarea id="goods" name="goods"></textarea>
    <button onclick="getContent()">ajax提交</button>

    </form>     
    </script>
    <!-- 配置文件 -->
    <script type="text/javascript" src="ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="ueditor.all.js"></script>
    
    <!-- 实例化编辑器 -->
    <script type="text/javascript">

    var ue = UE.getEditor('goods',{ 
        toolbars: [
        ['fullscreen', 'source', 'undo', 'redo', 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
            'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
            'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
            'directionalityltr', 'directionalityrtl', 'indent', '|',
            'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',]
            
    ],initialFrameWidth:750,initialContent:'欢迎留言!',
    });

 function getContent() {
        var arr = [];
        arr.push("使用editor.getContent()方法可以获得编辑器的内容");
        arr.push("内容为：");
        arr.push(UE.getEditor('goods').getContent());
        alert(arr.join("\n"));
    }
  function getPlainTxt() {

  }  
</script>
    </body>
</html>